package com.hu.zhcc.shiro.entity.tj;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 心理测评结果
 * </p>
 *
 * @author tj
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TMentalityResult extends Model<TMentalityResult> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 会员编号
     */
    private Integer tMemberId;
    /**
     * 是否强迫症化
     */
    private Integer tOcd;
    /**
     * 是否焦虑化
     */
    private Integer tAnxiety;
    /**
     * 是否恐怖化
     */
    private Integer tTerror;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 修改时间
     */
    private String updatetime;

    private TMember tMember;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer gettMemberId() {
        return tMemberId;
    }

    public void settMemberId(Integer tMemberId) {
        this.tMemberId = tMemberId;
    }

    public Integer gettOcd() {
        return tOcd;
    }

    public void settOcd(Integer tOcd) {
        this.tOcd = tOcd;
    }

    public Integer gettAnxiety() {
        return tAnxiety;
    }

    public void settAnxiety(Integer tAnxiety) {
        this.tAnxiety = tAnxiety;
    }

    public Integer gettTerror() {
        return tTerror;
    }

    public void settTerror(Integer tTerror) {
        this.tTerror = tTerror;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public TMember gettMember() {
        return tMember;
    }

    public void settMember(TMember tMember) {
        this.tMember = tMember;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
